From ad9595593bb5a13d8e12d57c0ffe2f592c4f8343 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Fri, 22 Jun 2007 18:45:10 +0000 Subject: [PATCH] Return raw bytea string, not arrayified version for encodeBlob() --- includes/DatabasePostgres.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/DatabasePostgres.php b/includes/DatabasePostgres.php index 4b56543173..ef20292a5d 100644 --- a/includes/DatabasePostgres.php +++ b/includes/DatabasePostgres.php @@ -1099,7 +1099,7 @@ END; } function encodeBlob( $b ) { - return array('bytea',pg_escape_bytea($b)); + return pg_escape_bytea( $b ); } function decodeBlob( $b ) { return pg_unescape_bytea( $b ); -- 2.20.1